import { HOST } from './config'
import axios from 'axios'

// banner
export function getBanner() {
  const url = `${HOST}/banner`
  return axios.get(url)
}

// 推荐歌单
export function getRecommendList() {
  const url = `${HOST}/personalized`
  return axios.get(url)
}

// 推荐新歌
export function getRecommendSong() {
  const url = `${HOST}/personalized/newsong`
  return axios.get(url)
}

// 导出全部接口
export function getAll() {
  return axios.all([getBanner(), getRecommendList(), getRecommendSong()])
}
